module.exports = {
  base: '/blog/',
  locales: {
    '/': {
      lang: 'zh-CN'
    }
  },
  theme: 'reco',
  title: '漫漫江雪的个人博客',
  description: '欢迎来到我的个人博客，这里是一些我个人的学习记录',
  // 移动端优化
  head: [['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]],
  // 主题设置
  themeConfig: {
    type: 'blog',
    author: '漫漫江雪',
    // 显示在个人信息的头像
    authorAvatar: '/avatar.jpg',
    // 导航栏左侧logo
    logo: '/avatar.jpg',
    // 搜索设置
    search: true,
    searchMaxSuggestions: 10,
    // 自动形成侧边导航及其深度
    subSidebar: 'auto',
    sidebarDepth: 1,
    // 最后更新时间
    lastUpdated: 'Last Updated',
    // 项目开始时间
    startYear: '2021',
    // 导航栏配置
    nav: [
      { text: '首页', link: '/', icon: 'reco-home' },
      { text: '时间线', link: '/timeline/', icon: 'reco-date' },
      {
        text: '个人链接',
        icon: 'reco-account',
        items: [
          { text: 'Gitee', link: 'https://gitee.com/jxmlearner', icon: 'reco-mayun' },
          { text: '简书', link: 'https://www.jianshu.com/u/b91288b4b460', icon: 'reco-jianshu' }
        ]
      }
    ],
    // 博客配置
    blogConfig: {
      category: {
        location: 2, // 在导航栏菜单中所占的位置，默认2
        text: '分类' // 默认文案 “分类”
      },
      tag: {
        location: 3, // 在导航栏菜单中所占的位置，默认3
        text: '标签' // 默认文案 “标签”
      }
    },
    // 友情链接
    friendLink: [
      {
        title: '午后南杂',
        desc: 'Enjoy when you can, and endure when you must.',
        logo: 'https://assets.smallsunnyfox.com/images/reco.png',
        link: 'https://www.recoluan.com'
      },
      {
        title: 'vuepress-theme-reco',
        desc: 'A simple and beautiful vuepress Blog & Doc theme.',
        logo: 'https://assets.smallsunnyfox.com/images/theme_reco.png',
        link: 'https://vuepress-theme-reco.recoluan.com'
      }
    ]
  },
  // 插件配置
  plugins: [
    [
      '@vuepress-reco/vuepress-plugin-bulletin-popover',
      {
        width: '240px', // 默认 260px
        title: '个人资料',
        body: [
          {
            type: 'title',
            content: '我的微信',
            style: 'text-aligin: center;'
          },
          {
            type: 'image',
            src: '/blog/weixin.png'
          }
        ],
        footer: []
      }
    ]
  ]
}
